package com.xiyounet.login.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.math.BigInteger;

/**
 * 返回用户
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserVo {

    private String userName;

    private String email;

    private String sex;

    //用户状态
    private String status;

    //账户余额
    //防止精度丢失
    @JsonSerialize(using = ToStringSerializer.class)
    private BigDecimal balance;
}
